﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL.EntitiesBLL
{
    public class LoaichungchiBLL
    {
        /// <summary>
        /// Mã tự sinh
        /// </summary>
        /// <param name="id"></param>
        /// <returns> id++ </returns>
        public string AddID(string id)
        {
            string s = id.Trim();

            int len = s.Length;
            string con = s.Substring(4);
            string kq = s.Substring(0,4);
            int so = Convert.ToInt32(con) + 1;
            if (so <= 9)
                kq += '0';
            kq += so;

            return kq;
        }
    }
}
